'/
' MOTEP - Massive Online Text Environment Project
' --------------------------------------------------------------------------------
' Shared Code
' 
' Colors_h.bmx
' 
' (c) Anton Berlin. All Rights Reserved.
'/


global oldColorR:int
global oldColorG:int
global oldColorB:int



' ==============================================================================
' Constants
' ==============================================================================

const DEFAULT_R:int = 200
const DEFAULT_G:int = 200
const DEFAULT_B:int = 200

const COMMON_R:int = 230
const COMMON_G:int = 210
const COMMON_B:int = 190

const HEADLINE_R:int = 255
const HEADLINE_G:int = 215
const HEADLINE_B:int = 31

const BRIGHT_RED_R:int = 255
const BRIGHT_RED_G:int = 000
const BRIGHT_RED_B:int = 000
const BRIGHT_GREEN_R:int = 000
const BRIGHT_GREEN_G:int = 255
const BRIGHT_GREEN_B:int = 000
const BRIGHT_BLUE_R:int = 000
const BRIGHT_BLUE_G:int = 000
const BRIGHT_BLUE_B:int = 255
const BRIGHT_YELLOW_R:int = 255
const BRIGHT_YELLOW_G:int = 255
const BRIGHT_YELLOW_B:int = 000
const BRIGHT_TURCOSE_R:int = 000
const BRIGHT_TURCOSE_G:int = 255
const BRIGHT_TURCOSE_B:int = 255
const BRIGHT_MAGENTA_R:int = 255
const BRIGHT_MAGENTA_G:int = 000
const BRIGHT_MAGENTA_B:int = 255
const BRIGHT_ORANGE_R:int = 255
const BRIGHT_ORANGE_G:int = 125
const BRIGHT_ORANGE_B:int = 000
const BRIGHT_BROWN_R:int = 150
const BRIGHT_BROWN_G:int = 100
const BRIGHT_BROWN_B:int = 050
const BRIGHT_PINK_R:int = 255
const BRIGHT_PINK_G:int = 150
const BRIGHT_PINK_B:int = 200
const BRIGHT_GRAY_R:int = 200
const BRIGHT_GRAY_G:int = 200
const BRIGHT_GRAY_B:int = 200
const BRIGHT_MANA_R:int = 50
const BRIGHT_MANA_G:int = 75
const BRIGHT_MANA_B:int = 255
const BRIGHT_PURPLE_R:int = 127
const BRIGHT_PURPLE_G:int = 000
const BRIGHT_PURPLE_B:int = 255
const BRIGHT_WOOD_R:int = 255
const BRIGHT_WOOD_G:int = 170
const BRIGHT_WOOD_B:int = 085

const RED_R:int = 175
const RED_G:int = 000
const RED_B:int = 000
const GREEN_R:int = 000
const GREEN_G:int = 175
const GREEN_B:int = 000
const BLUE_R:int = 000
const BLUE_G:int = 000
const BLUE_B:int = 175
const YELLOW_R:int = 175
const YELLOW_G:int = 175
const YELLOW_B:int = 000
const TURCOSE_R:int = 000
const TURCOSE_G:int = 175
const TURCOSE_B:int = 175
const MAGENTA_R:int = 175
const MAGENTA_G:int = 000
const MAGENTA_B:int = 175
const ORANGE_R:int = 175
const ORANGE_G:int = 088
const ORANGE_B:int = 000
const BROWN_R:int = 100
const BROWN_G:int = 067
const BROWN_B:int = 033
const PINK_R:int = 255
const PINK_G:int = 100
const PINK_B:int = 175
const GRAY_R:int = 125
const GRAY_G:int = 125
const GRAY_B:int = 125
const MANA_R:int = 025
const MANA_G:int = 050
const MANA_B:int = 200
const HEALTH_R:int = 000
const HEALTH_G:int = 175
const HEALTH_B:int = 000
const PURPLE_R:int = 088
const PURPLE_G:int = 000
const PURPLE_B:int = 175
const WOOD_R:int = 175
const WOOD_G:int = 117
const WOOD_B:int = 058

const MEDIUM_BROWN_R:int = 052
const MEDIUM_BROWN_G:int = 026
const MEDIUM_BROWN_B:int = 013

const DARK_RED_R:int = 100
const DARK_RED_G:int = 000
const DARK_RED_B:int = 000
const DARK_GREEN_R:int = 000
const DARK_GREEN_G:int = 100
const DARK_GREEN_B:int = 000
const DARK_BLUE_R:int = 000
const DARK_BLUE_G:int = 000
const DARK_BLUE_B:int = 100
const DARK_YELLOW_R:int = 100
const DARK_YELLOW_G:int = 100
const DARK_YELLOW_B:int = 000
const DARK_TURCOSE_R:int = 000
const DARK_TURCOSE_G:int = 100
const DARK_TURCOSE_B:int = 100
const DARK_MAGENTA_R:int = 100
const DARK_MAGENTA_G:int = 000
const DARK_MAGENTA_B:int = 100
const DARK_ORANGE_R:int = 100
const DARK_ORANGE_G:int = 050
const DARK_ORANGE_B:int = 000
const DARK_BROWN_R:int = 060
const DARK_BROWN_G:int = 040
const DARK_BROWN_B:int = 020
const DARK_PINK_R:int = 200
const DARK_PINK_G:int = 025
const DARK_PINK_B:int = 100
const DARK_GRAY_R:int = 050
const DARK_GRAY_G:int = 050
const DARK_GRAY_B:int = 050
const DARK_MANA_R:int = 012
const DARK_MANA_G:int = 033
const DARK_MANA_B:int = 150
const DARK_PURPLE_R:int = 050
const DARK_PURPLE_G:int = 000
const DARK_PURPLE_B:int = 100
const DARK_WOOD_R:int = 100
const DARK_WOOD_G:int = 067
const DARK_WOOD_B:int = 033

const DARKER_BROWN_R:int = 030
const DARKER_BROWN_G:int = 020
const DARKER_BROWN_B:int = 010

const WHITE_R:int = 255
const WHITE_G:int = 255
const WHITE_B:int = 255

const BLACK_R:int = 020
const BLACK_G:int = 020
const BLACK_B:int = 020

const PITCHBLACK_R:int = 000
const PITCHBLACK_G:int = 000
const PITCHBLACK_B:int = 000

const QUEST_R:int = 170
const QUEST_G:int = 215
const QUEST_B:int = 180

const POISON_R:int = 000
const POISON_G:int = 255
const POISON_B:int = 100



' ==============================================================================
' Functions
' ==============================================================================

function setOldColor(r:int, g:int, b:int)

	oldColorR = r
	oldColorG = g
	oldColorB = b

end function

function resetClr(); SetColor(oldColorR, oldColorG, oldColorB); end function
function resetColor(); resetClr(); end function
function clrDefault(); clrCustom(DEFAULT_R, DEFAULT_G, DEFAULT_B); end function

function clrCommon(); clrCustom(COMMON_R, COMMON_G, COMMON_B); end function
function clrHeadline(); clrCustom(HEADLINE_R, HEADLINE_G, HEADLINE_B); end function

function clrBrightRed(); clrCustom(BRIGHT_RED_R, BRIGHT_RED_G, BRIGHT_RED_B); end function
function clrBrightGreen(); clrCustom(BRIGHT_GREEN_R, BRIGHT_GREEN_G, BRIGHT_GREEN_B); end function
function clrBrightBlue(); clrCustom(BRIGHT_BLUE_R, BRIGHT_BLUE_G, BRIGHT_BLUE_B); end function
function clrBrightYellow(); clrCustom(BRIGHT_YELLOW_R, BRIGHT_YELLOW_G, BRIGHT_YELLOW_B); end function
function clrBrightTurcose(); clrCustom(BRIGHT_TURCOSE_R, BRIGHT_TURCOSE_G, BRIGHT_TURCOSE_B); end function
function clrBrightMagenta(); clrCustom(BRIGHT_MAGENTA_R, BRIGHT_MAGENTA_G, BRIGHT_MAGENTA_B); end function
function clrBrightOrange(); clrCustom(BRIGHT_ORANGE_R, BRIGHT_ORANGE_G, BRIGHT_ORANGE_B); end function
function clrBrightBrown(); clrCustom(BRIGHT_BROWN_R, BRIGHT_BROWN_G, BRIGHT_BROWN_B); end function
function clrBrightPink(); clrCustom(BRIGHT_PINK_R, BRIGHT_PINK_G, BRIGHT_PINK_B); end function
function clrBrightGray(); clrCustom(BRIGHT_GRAY_R, BRIGHT_GRAY_G, BRIGHT_GRAY_B); end function
function clrBrightMana(); clrCustom(BRIGHT_MANA_R, BRIGHT_MANA_G, BRIGHT_MANA_B); end function
function clrBrightPurple(); clrCustom(BRIGHT_PURPLE_R, BRIGHT_PURPLE_G, BRIGHT_PURPLE_B); end function
function clrBrightWood(); clrCustom(BRIGHT_WOOD_R, BRIGHT_WOOD_G, BRIGHT_WOOD_B); end function

function clrRed(); clrCustom(RED_R, RED_G, RED_B); end function
function clrGreen(); clrCustom(GREEN_R, GREEN_G, GREEN_B); end function
function clrBlue(); clrCustom(BLUE_R, BLUE_G, BLUE_B); end function
function clrYellow(); clrCustom(YELLOW_R, YELLOW_G, YELLOW_B); end function
function clrTurcose(); clrCustom(TURCOSE_R, TURCOSE_G, TURCOSE_B); end function
function clrMagenta(); clrCustom(MAGENTA_R, MAGENTA_G, MAGENTA_B); end function
function clrOrange(); clrCustom(ORANGE_R, ORANGE_G, ORANGE_B); end function
function clrBrown(); clrCustom(BROWN_R, BROWN_G, BROWN_B); end function
function clrPink(); clrCustom(PINK_R, PINK_G, PINK_B); end function
function clrGray(); clrCustom(GRAY_R, GRAY_G, GRAY_B); end function
function clrMana(); clrCustom(MANA_R, MANA_G, MANA_B); end function
function clrHealth(); clrCustom(HEALTH_R, HEALTH_G, HEALTH_B); end function
function clrPurple(); clrCustom(PURPLE_R, PURPLE_G, PURPLE_B); end function
function clrWood(); clrCustom(WOOD_R, WOOD_G, WOOD_B); end function

function clrMediumBrown(); clrCustom(MEDIUM_BROWN_R, MEDIUM_BROWN_G, MEDIUM_BROWN_B); end function

function clrDarkRed(); clrCustom(DARK_RED_R, DARK_RED_G, DARK_RED_B); end function
function clrDarkGreen(); clrCustom(DARK_GREEN_R, DARK_GREEN_G, DARK_GREEN_B); end function
function clrDarkBlue(); clrCustom(DARK_BLUE_R, DARK_BLUE_G, DARK_BLUE_B); end function
function clrDarkYellow(); clrCustom(DARK_YELLOW_R, DARK_YELLOW_G, DARK_YELLOW_B); end function
function clrDarkTurcose(); clrCustom(DARK_TURCOSE_R, DARK_TURCOSE_G, DARK_TURCOSE_B); end function
function clrDarkMagenta(); clrCustom(DARK_MAGENTA_R, DARK_MAGENTA_G, DARK_MAGENTA_B); end function
function clrDarkOrange(); clrCustom(DARK_ORANGE_R, DARK_ORANGE_G, DARK_ORANGE_B); end function
function clrDarkBrown(); clrCustom(DARK_BROWN_R, DARK_BROWN_G, DARK_BROWN_B); end function
function clrDarkPink(); clrCustom(DARK_PINK_R, DARK_PINK_G, DARK_PINK_B); end function
function clrDarkGray(); clrCustom(DARK_GRAY_R, DARK_GRAY_G, DARK_GRAY_B); end function
function clrDarkMana(); clrCustom(DARK_MANA_R, DARK_MANA_G, DARK_MANA_B); end function
function clrDarkPurple(); clrCustom(DARK_PURPLE_R, DARK_PURPLE_G, DARK_PURPLE_B); end function
function clrDarkWood(); clrCustom(DARK_WOOD_R, DARK_WOOD_G, DARK_WOOD_B); end function

function clrDarkerBrown(); clrCustom(DARKER_BROWN_R, DARKER_BROWN_G, DARKER_BROWN_B); end function

function clrWhite(); clrCustom(WHITE_R, WHITE_G, WHITE_B); end function
function clrBlack(); clrCustom(BLACK_R, BLACK_G, BLACK_B); end function
function clrPitchBlack(); clrCustom(PITCHBLACK_R, PITCHBLACK_G, PITCHBLACK_B); end function
function clrQuest(); clrCustom(QUEST_R, QUEST_G, QUEST_B); end function
function clrPoison(); clrCustom(POISON_R, POISON_G, POISON_B); end function

function clrCustom(r:int, g:int, b:int)

	GetColor(oldColorR, oldColorG, oldColorB)
	SetColor(r, g, b)

end function

